package com.john.cloud.consumer.remote;

import com.john.cloud.consumer.fallback.MySpringBootFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/5/6 10:37
 */
@FeignClient(name= "Spring-boot-rabbitmq",fallback = MySpringBootFallBack.class)
public interface HelloRemote {

    @RequestMapping(value = "/cloud")
    String hello(@RequestParam String name);

}
